/*
 * @Author: LiZn
 * @Date: 2018-09-01 09:20:15
 * @LastEditTime: 2021-09-20 05:01:05
 * @LastEditors: LiZn
 * @Description: file content
 * @FilePath: \project\project\vue.config.js
 */
const path = require("path");
const bodyParser = require("body-parser")
const resolve = dir=> path.resolve(__dirname,dir);
module.exports = {
  configureWebpack:{
    name:"开始你的表演"
  },
  chainWebpack:config=>{
    config.module.rule('svg')
    .exclude.add(resolve('./src/assets/svg'))
    //新增验证
    config.module.rule('icons')
    .test(/\.svg$/)
    .include.add(resolve('./src/assets/svg')).end()
    .use('svg-sprite-loader')
    .loader("svg-sprite-loader")
    .options({symbolId:'icon-[name]'})
  },

}